import ajax from '@/api/apiConfig.js'

/* 获取多单位首页联网单位实时安全指数排名 */
export const getOrgsSafetyScore = (data) => {
  return ajax.get('safeEvaluate/getOrgsSafetyScore', data)
}

/* 联网单单位实时安全指数统计 */
export const getScoreItemDetail = (data) => {
  return ajax.get('safeEvaluate/getScoreItemDetail', data)
}

/* 实时扣分明细 */
export const getDeductDetail = (data) => {
  return ajax.get('safeEvaluate/getDeductDetail', data)
}

/* 安全态势走势 */
export const getSafeEvaluateHistoryTrend = (data) => {
  return ajax.get('safeEvaluate/getSafeEvaluateHistoryTrend', data)
}

/* 安全态势分布 */
export const getSafeScoreCountByParam = (data) => {
  return ajax.get('safeEvaluate/getSafeScoreCountByParam', data)
}

/* 获取分组扣分上限 */
export const getSafetyGroupMaxScore = (data) => {
  return ajax.get('safeEvaluate/getSafetyGroupMaxScore', data)
}
